package com.zonekey.entity.dto.enums;

/**
 * @description:
 * @author: 靳俊英
 * @create: 2021-05-17 16:43
 **/
public enum ResultEnum {

    SUCCESS(0, "success"),
    FAILURE(1, "failure"),
    /** 4XX：客户端错误。请求包含语法错误，提供的信息不对，或者请求无法实现*/
    RESULT_NULL_PARAM_TOKEN(401,"请求中token为空"),
    RESULT_INVALID_PARAM_TOKEN(401,"请求中token格式不合法")
    ;

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
